package org.myspring.dis;

public class Bar {

	private Foo foo;
	
	public Bar(Foo foo, String value) {
		System.out.println("Bar constructor ...");
		this.foo = foo;
		this.foo.setName(value);		
	}
	
	public void getFoo() {
		System.out.println(foo.getName());
	}
}
